import Vue from 'vue'
import Vuex from 'vuex'
 
Vue.use(Vuex)
 
const state = {
    count: ""
}
 
const getters = {
    getNum(state) {
        return state.count;
    }
}
 
const mutations = {
    add(state,str) {
        state.count = str;
    }
}
 
export default new Vuex.Store({
    state,
    getters,
    mutations

})